﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace EcSalseManage
{
    public partial class LoginOut : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Session.Abandon();

            this.Page.ClientScript.RegisterStartupScript(typeof(Page), "", "<script>clearCookie();</script>");
            TimeSpan ts = new TimeSpan(-1, 0, 0, 0);
            Response.Cookies["WebSite"].Expires = DateTime.Now.Add(ts);
            Response.Redirect("UserLogin.aspx");
        }
    }
}
